package com.gl.file;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

public class Application implements Serializable{
    public static final int STATUS_OFFLINE = 0;
    public static final int STATUS_ONLINE = 1;

    public static final int TYPE_BS = 0;
    public static final int TYPE_CS = 1;

    protected String appId;
    protected String name;
    //数据库字段
    protected int       status = STATUS_ONLINE;
    protected int       type = TYPE_BS;
    protected String 	applicationID;
    protected String    iconFileName;       //不带相对路径
    protected String    helpFileName;       //不带相对路径
    protected String    url;
    protected String    description;
    protected String    feature;
    protected String    currentVersion;
    protected Timestamp created;
    protected Timestamp lastModify;
    protected List files = new ArrayList<String>();

    public Application() {
        super();
        this.created = new Timestamp(System.currentTimeMillis());
    }

    public Application(String id, String name) {
        this.created = new Timestamp(System.currentTimeMillis());
    }

    public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List getFiles() {
		return files;
	}

	public void setFiles(List files) {
		this.files = files;
	}

	public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
    
    public String getApplicationID() {
		return applicationID;
	}

	public void setApplicationID(String applicationID) {
		this.applicationID = applicationID;
	}

	public String getIconFileName() {
        return iconFileName;
    }

    public void setIconFileName(String iconFileName) {
        this.iconFileName = iconFileName;
    }

    public String getHelpFileName() {
        return helpFileName;
    }

    public void setHelpFileName(String helpFileName) {
        this.helpFileName = helpFileName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getFeature() {
        return feature;
    }

    public void setFeature(String feature) {
        this.feature = feature;
    }

    public String getCurrentVersion() {
        return currentVersion;
    }

    public void setCurrentVersion(String currentVersion) {
        this.currentVersion = currentVersion;
    }

    public Timestamp getCreated() {
        return created;
    }

    public void setCreated(Timestamp created) {
        this.created = created;
    }

    public Timestamp getLastModify() {
        return lastModify;
    }

    public void setLastModify(Timestamp lastModify) {
        this.lastModify = lastModify;
    }
}
